#ifndef _msr_h
#define _msr_h

// msr.h - Model Specific Registers. Napalm likes these a lot

// Time Stamp Counter.
#define MSR_TSC 		00000010h
#define MSR_TSC_AUX		C0000103h

#define MSR_TR12		0000000Eh
#define MSR_MISC_CTL		00000119h

#define MSR_MISC_ENABLE		000001A0h
#define MSR_EFER		C0000080h

// SYSENTER
#define MSR_SEP_SEL		00000174h
#define MSR_SEP_ESP             00000175h
#define MSR_SEP_EIP             00000176h

// SYSCALL
#define MSR_STAR		C0000081h

#define MSR_PAT			00000277h

// APIC 
#define MSR_APIC_BASE		0000001Bh

long unsigned int readmsr(int);
void writemsr(long unsigned int);



#endif
